package com.nongfuspring.nongfu.pojo;

import java.util.List;

public class Menu {
    private Integer id;
    private Integer parentId;
    private String path;
    private String component;
    private String name;
    private String iconCls;
    private String keepAlive;
    private String requireAuth;
    private List<Menu> children;

    public Menu() {
    }

    public Menu(Integer id, Integer parentId, String path, String component, String name, String iconCls, String keepAlive, String requireAuth, List<Menu> children) {
        this.id = id;
        this.parentId = parentId;
        this.path = path;
        this.component = component;
        this.name = name;
        this.iconCls = iconCls;
        this.keepAlive = keepAlive;
        this.requireAuth = requireAuth;
        this.children = children;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIconCls() {
        return iconCls;
    }

    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }

    public String getKeepAlive() {
        return keepAlive;
    }

    public void setKeepAlive(String keepAlive) {
        this.keepAlive = keepAlive;
    }

    public String getRequireAuth() {
        return requireAuth;
    }

    public void setRequireAuth(String requireAuth) {
        this.requireAuth = requireAuth;
    }

    public List<Menu> getChildren() {
        return children;
    }

    public void setChildren(List<Menu> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "id=" + id +
                ", parentId=" + parentId +
                ", path='" + path + '\'' +
                ", component='" + component + '\'' +
                ", name='" + name + '\'' +
                ", iconCls='" + iconCls + '\'' +
                ", keepAlive='" + keepAlive + '\'' +
                ", requireAuth='" + requireAuth + '\'' +
                ", children=" + children +
                '}';
    }
}
